package edu.software.cakehomework.dao;

import edu.software.cakehomework.entity.Type;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;

public interface TypeRepository extends JpaRepository<Type, Integer> {
    Optional<Type> findByCategory(Type.Categories category);
}